package com.hzh.cusviewdemo.Activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.hzh.cusviewdemo.R

class KotlinActivity : AppCompatActivity() {

    val a: Int = 0
    val boxedA: Int = a
    val twoboxedA: Int = a
//    val x:IntArray = intArray()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_kotlin)

        val res = boxedA == twoboxedA
//        Toast.makeText(this@KotlinActivity, res.toString(), Toast.LENGTH_SHORT).show()

        for (c in "123as") {
            Toast.makeText(this@KotlinActivity, c.toString(), Toast.LENGTH_SHORT).show()
        }
    }
}